//
//  AdminModel.swift
//  Venus
//
//  Created by Smith_Yang on 2018/10/9.
//  Copyright © 2018 zhaowang. All rights reserved.
//

import UIKit
import SwiftyJSON

class AdminModel: NSObject {

    var id : Int = 1
    var groupId : Int = 1
    var userId : Int = 11
//        "user": {
//        "pageNum": 1,
//        "pageSize": 10,
//        "id": 11,
//        "userName": "张大仙",
//        "address": null,
//        "headImg": "http://staging.jiliyun.com/image/institutionHead/QQ截图20180601095455.png",
//        "globalAreaCode": "+86",
//        "phone": "13641745897",
//        "createTime": "1534149175519",
//        "updateTime": "1537323859080",
//        "role": "0",
//        "checkCode": null,
//        "groupIds": null,
//        "phoneKey": "1",
//        "ip": "183.195.6.48",
//        "recommendPhone": "",
//        "tonken": "f7f7c3f5-d4b4-477a-8d19-e5aa8c98456a",
//        "jobName": null,
//        "isSee": null,
//        "isDelete": null,
//        "institutionId": null,
//        "appointmentTime": null,
//        "remark": null
//        },
    var createUserId : Int = 1
    var createTime : String = "1534149175519"
    var updateTime : String = "1534149175519"
    var delete : Bool = false
    
    override init() {
        super.init()
    }
    
    init(fromJson json: JSON!){
        if json.isEmpty{
            return
        }
        id = json["id"].intValue
        groupId = json["groupId"].intValue
        userId = json["userId"].intValue
        createUserId = json["createUserId"].intValue
        createTime = json["createTime"].stringValue
        updateTime = json["updateTime"].stringValue
        delete = json["delete"].boolValue
    }
}
